package ar.com.solidussource.howmuchmobile.services.mocks;

import ar.com.solidussource.howmuchmobile.common.entities.Market;
import ar.com.solidussource.howmuchmobile.common.entities.Product;
import ar.com.solidussource.howmuchmobile.common.entities.Productprice;
import ar.com.solidussource.howmuchmobile.common.exception.ServiceException;

import java.util.ArrayList;
import java.util.List;

/**
 * Created with IntelliJ IDEA.
 * User: FT31270775
 * Date: 14/11/12
 * Time: 16:13
 * To change this template use File | Settings | File Templates.
 */
public class ProductPriceMockService {

    public List<Productprice> getProductprices(Market market, List<Product> products) throws ServiceException {
        List<Productprice> productprices = new ArrayList<Productprice>();

        Product product = new Product();
        product.setName("Manteca");

        Productprice productprice = new Productprice();
        productprice.setProduct(product);
        productprice.setPrice(123.4f);
        productprice.setScore(10);

        productprices.add(productprice);

        Product product2 = new Product();
        product2.setName("Dulce de Leche");

        Productprice productprice2 = new Productprice();
        productprice2.setProduct(product2);
        productprice2.setPrice(3.4f);
        productprice2.setScore(15);

        productprices.add(productprice2);

        return productprices;
    }
}
